package com.king.tv.mvp.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.hannesdorfmann.mosby.mvp.MvpPresenter;
import com.jaeger.library.StatusBarUtil;
import com.king.tv.R;
import com.king.tv.mvp.base.BaseActivity;
import com.king.tv.mvp.base.PureActivity;

import butterknife.BindView;
import butterknife.ButterKnife;

public class NoticeActivity extends PureActivity {
    @BindView(R.id.ivLeft)
    ImageView ivLeft;
    @BindView(R.id.tvTitle)
    TextView tvTitle;
    @BindView(R.id.ivRight)
    ImageView ivRight;
    @BindView(R.id.tvnotice)
    TextView tvnotice;

    @Override
    public int getRootViewId() {
        return R.layout.activity_notice;
    }

    @Override
    public void initUI() {
        StatusBarUtil.setColor(NoticeActivity.this, getResources().getColor(R.color.colorPrimaryDark));
        tvTitle.setText("公告");
        ivLeft.setVisibility(View.GONE);
        ivRight.setVisibility(View.GONE);
        Intent intent = getIntent();
        if(intent.hasExtra("content")){
            String msg = intent.getStringExtra("content");
            tvnotice.setText(msg);
        }
    }



}
